#!/bin/bash

# startSNMPD
#
# Usage:
#    startSNMPD <snmpd.conf file> <pid file> <snmp agent parameters>
#
# Description:
#    This script starts the SNMP daemon for the console
#    using the snmpd.conf configuration file generated by the
#    SNMP configuration task under HMC Console Settings.
#
# Return Codes
#    0: normal script termination; no unrecoverable errors
#    1: error starting the SNMP daemon
#
# Module History
#    00  03/11/2003  P. Provost - Initial Release
#    01  11/24/2003  P. Provost - Removed setup of environment for ODT E3286 

CONFFILE=$1
PIDFILE=$2
PARMS=$3

# include the common hmc functions
#. ./native/scripts/hmcfunctions

# setup the environment for the snmpd process
#setupEnv $PWD

# start the snmp daemon with the given .conf file and the snmp agent parms 
if /usr/sbin/snmpd -C -c $CONFFILE -P $PIDFILE $PARMS; then
    exit 0
else
    exit 1
fi    
